home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
A-Monthly Disks
/
(c)aal.d64
/
banner printer
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
1KB
|
62 lines
5 DIMA(8,8)
10 POKE53281,12:POKE53280,12:POKE646,0:PRINT"[147]";
12 PRINT"BANNER PRINTER BY DICK SEARFOSS"
15 PRINT"TYPE IN TEXT YOU WANT TO PRINT ON BANNER"
20 PRINT"STRING OF 80 CHAR'S MAX NO (,)OR(:)'S[146]":PRINT:PRINT
21 INPUTA$
22 L=LEN(A$):IFL>80THENPRINT"TO LONG[146]":GOTO10
25 FORZ=1TOL
27 D$=MID$(A$,Z,1):AS=ASC(D$)
29 IFAS>63THENA=(AS-64)*8+53248:GOTO35
31 A=(AS*8)+53248
35 POKE56334,PEEK(56334)AND254
36 POKE1,PEEK(1)AND251
40 FORX=0TO7
45 Y=0
50 B=PEEK(X+A)
60 C=INT(B/128):IFC=1THENB=B-128
65 A(X,Y)=C:Y=Y+1
70 C=INT(B/64):IFC=1THENB=B-64
75 A(X,Y)=C:Y=Y+1
80 C=INT(B/32):IFC=1THENB=B-32
85 A(X,Y)=C:Y=Y+1
90 C=INT(B/16):IFC=1THENB=B-16
95 A(X,Y)=C:Y=Y+1
100 C=INT(B/8):IFC=1THENB=B-8
105 A(X,Y)=C:Y=Y+1
110 C=INT(B/4):IFC=1THENB=B-4
115 A(X,Y)=C:Y=Y+1
120 C=INT(B/2):IFC=1THENB=B-2
125 A(X,Y)=C:Y=Y+1
130 C=INT(B)
135 A(X,Y)=C:Y=Y+1
150 NEXTX
157 POKE1,PEEK(1)OR4
158 POKE56334,PEEK(56334)OR1
160 GOSUB500
170 NEXTZ
300 STOP
500 OPEN1,4
520 FORG=0TO7
525 FORF=1TO2
526 PRINT#1,TAB(16);
530 FORH=7TO0STEP-1
540 IFA(H,G)=0THENPRINT#1," ";
550 IFA(H,G)=1THENPRINT#1,"******";
560 NEXTH
565 PRINT#1," "
570 NEXTF
580 NEXTG
600 FORF=1TO3
610 PRINT#1
620 NEXTF
630 CLOSE1:RETURN
700 FORG=0TO7
710 FORH=0TO7
720 IFA(G,H)=0THENPRINT" ";
730 IFA(G,H)=1THENPRINT"*";
740 NEXTH
750 PRINT" "
760 NEXTG
1000 PRINT"[147]"